package com.xisoft.generator.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@PropertySource (value = {"classpath:/config/template.properties"})
@Configuration
@EnableCaching
public class TemplateConfig extends CachingConfigurerSupport
{

    /**
     * 代码生成文件存放的基础路径:你生成的文件要放的位置！
     */
    @Value ("${xisoft.code.basepath}")
    public String BASE_PATH;

    @Value ("${xisoft.code.basePackageName}")
    public String BASEPACKAGENAME;

    @Value ("${xisoft.code.author}")
    public String AUTHOR;

    //@Value("${xisoft.code.table2packagename}")
    public String TABLE2PACKAGENAME = "N";
}
